decorative banner

Debug output


    write (text, ...);
    writeln (text, ...);

    Write the given string to the Debug Output window. The writeln method appends a New Line character to its arguments.

Parameters

    text

    String

    All parameters are concatenated to a single string.

Returns

    None.

    clearbp (scriptletName, line);

    Clear a breakpoint. The breakpoint is defined by the name of the scriptlet or function and the line number. If the scriptlet name is the empty string or missing, the name of the currently executing scriptlet is used. If the line number is zero or not supplied, the current line number is used. Thus, the call $.clearbp() without parameters clears a breakpoint at the current position.

    The special string "NEXTCALL" as the scriptlet name causes the engine to clear a breakpoint at the next function call.

Parameters

    scriptletName

    String

    The name of the scriptlet where the breakpoint is to be cleared.

    line

    Number

    The line number where the breakpoint is to be cleared.

Returns

    None.

    bp([condition]);

    Execute a breakpoint at the current position. Optionally, a condition may be supplied. The condition is a JavaScript expression string that is evaluated before the breakpoint is executed. The breakpoint is only executed if the expression returns true. If no condition is given, the use of the debugger statement is recommended instead as it is a more widely supported JavaScript standard statement.

Parameters

    condition

    String

    An optional Javascript expression string that is evaluated before the breakpoint is executed. The expression needs to evaluate to the equivalent of true in order to activate the breakpoint.

Returns

    None.